﻿using System;
using System.ComponentModel.DataAnnotations;
using TheResources;

namespace Core.Forms
{
    public class Login
    {
        [Required(ErrorMessageResourceName = "RequiredField", ErrorMessageResourceType = typeof(TheResources.Global))]
        [Display(ResourceType = typeof(TheResources.Global), Name = "UserNameOrEmail")]
        public string UserName { get; set; }

        [StringLength(255, MinimumLength = 6, ErrorMessageResourceType = typeof(TheResources.Global), ErrorMessageResourceName = "MinLength")]
        [Required(ErrorMessageResourceName = "RequiredField", ErrorMessageResourceType = typeof(TheResources.Global))]
        [Display(ResourceType = typeof(TheResources.Global), Name = "Password")]
        public string Password { get; set; }

        [Display(ResourceType = typeof(TheResources.Global), Name = "RememberMe")]
        public bool remember { get; set; }        
    }
}
